package robot.arm;

import java.awt.BorderLayout;
import java.awt.GraphicsConfiguration;

import com.sun.j3d.utils.image.*;
import com.sun.j3d.utils.geometry.*;

import com.sun.j3d.utils.universe.*;

import javax.media.j3d.*;

import javax.vecmath.*;

//import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;

public class RobotRender {
	
	// create canvas and universe here
	   //setLayout(new BorderLayout());
   public static void main(String[] args) {
	   GraphicsConfiguration config =

	      SimpleUniverse.getPreferredConfiguration();

	   Canvas3D c = new Canvas3D(config);
	   
	   Arm theArm = new Arm(0.2f, 0.1f, 0.05f, 4);

	   //add("Center", c);
	   
	   BranchGroup scene = theArm.draw();

	   SimpleUniverse u = new SimpleUniverse();
	   
	   u.getViewingPlatform().setNominalViewingTransform();

	   u.addBranchGraph(scene);
	   
   }   

}
